<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ include file="/WEB-INF/jsp/includes.jsp" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title>光伏企业</title>
    <link href="<spring:url value="/static/style/index.css" htmlEscape="true" />" rel="stylesheet" type="text/css">
    <script type="text/javascript" src="<spring:url value="/static/js/listtable.js" htmlEscape="true" />"></script>
    <script type="text/javascript" src="<spring:url value="/static/js/jquery.min.js" htmlEscape="true" />"></script>
    <script type="text/javascript">
        function toDelete(chk) {
            if (confirm("你确认要删除吗?")) {
                var theForm = document.forms['deleteForm'];
                if (listTable.anyChecked(theForm, "industryCategoryIds")) {
                    theForm.submit();
                } else {
                    alert("请选择要删除的！");
                }
            }
        }
    </script>
</head>
<body>
<div class="list_right_title">
    <span><img src="<spring:url value="/static/images/infor_enter_icon.jpg" htmlEscape="true" />" alt="信息采编"></span>光伏在线>>光伏产业类型
</div>
<div class="list_right_table_title">
        <form:form modelAttribute="industrySearchForm" method="post">
            <div class="list_right_table_title_form">
                <input type="button" value="　删除　" onclick="toDelete();">
                <input type="button" value="　添加　" onclick="window.location.href='/management/industry/categories'"> 名称
                <form:input path="title"/>
                <input type="submit" value="　查询　"/>
            </div>
            <%@ include file="/WEB-INF/jsp/management/common/pagebar.jsp" %>
        </form:form>
</div>
<div class="table_box">
    <form:form method="DELETE" name="deleteForm">
        <table class="table" cellspacing="0" cellpadding="0">
            <tr>
                <th nowrap width="5%" align="center">
                    <input type="checkbox" onclick='listTable.selectAll(this, "industryCategoryIds")'/>
                </th>
                <th nowrap width="60%" align="left">名称</th>
                <th nowrap width="35%" style="border-right:#ffffff 1px solid;">操作</th>
            </tr>
            <c:forEach var="industryCategory" items="${page.result}">
                <tr>
                    <td align="center" nowrap><input name="industryCategoryIds" type="checkbox" value="${industryCategory.id}"/>
                    </td>
                    <td nowrap>
                        <a href="${industryCategory.id}">${industryCategory.name}</a>
                    </td>
                    <td align="center" nowrap>
                        <div class="image">
                            <img src="<spring:url value="/static/images/infor_notice_link_icon.jpg" htmlEscape="true" />" alt="编辑">
                            <a href="${industryCategory.id}">编辑</a>
                        </div>
                    </td>
                </tr>
            </c:forEach>
        </table>
    </form:form>
</div>
<div class="list_right_table_title">
    <form:form modelAttribute="industrySearchForm" method="post">
        <div class="list_right_table_title_form">
            <input type="button" value="　删除　" onclick="toDelete();">
            <input type="button" value="　添加　" onclick="window.location.href='/management/industry/categories'"> 名称
            <form:input path="title"/>
                <input type="submit" value="　查询　"/>
        </div>
        <%@ include file="/WEB-INF/jsp/management/common/pagebar.jsp" %>
    </form:form>
</div>
</body>
</html>